package org.sanm.domain.order.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.sanm.domain.goods.Goods;
import org.sanm.domain.project.Project;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Data
public class OrderRes {
    private Integer id;
    private String no;
    private Integer projectId;
    private Long amount;
    private String remark;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    private List<Goods> goodsList = new ArrayList<>();
    private Project project = new Project();
}
